﻿@model SelfMadeMillionaire.Web.Infrastructure.ViewModels.Account.ResetPasswordViewModel
@{
	ViewBag.Title = "Reset Password";
}

<div class="row">
	<div class="col-sm-12 col-md-12 col-lg-12">

		<!--left content block-->
		<div class="left_col_block">
			<div class="content_block_title">
				<h5>Reset Password</h5>
				<div class="title_bottom_arrow">
					<img src="@Url.Content("~/Content/images/down_arrow.png")" alt="" /></div>
			</div>

            @if (Model.Key != Guid.Empty)
            {
			<div class="biography_container">
				@using (Html.BeginForm("ResetPassword", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
	{
					@Html.ValidationSummary(true)
					<div class="login_block">
						<div class="form-group">
							@Html.LabelFor(m => m.Password, new { @class = "col-sm-3 control-label custom_label" })
							<div class="col-sm-7">
                                @Html.HiddenFor(m=>m.Key)
								@Html.PasswordFor(m => m.Password, new { @class = "form-control", placeholder = "Enter New password" })
							    @Html.ValidationMessageFor(m=>m.Password)
							</div>
						</div>
                        <div class="form-group">
							@Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-sm-3 control-label custom_label" })
							<div class="col-sm-7">
								@Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control", placeholder = "Enter Confirm password" })
							    @Html.ValidationMessageFor(m=>m.ConfirmPassword)
							</div>
						</div>
						<div class="form-group">
							<label for="firstName" class="col-sm-3 control-label custom_label">&nbsp;</label>
							<div class="col-sm-7">
								<div class="newsletter_search_btn">
									<button type="submit" class="btn btn-primary">Reset</button>
								</div>
							</div>
						</div>
					</div>                                                          
                                
	}
			</div>
            }
            else
            {
                <div class="biography_container">
                    Your reset password link has expired. Click @Html.ActionLink("here", "Login") to login 
                </div>
            }
		</div>
	</div>
</div>
